package com.mm.fam.auth.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.mm.fam.auth.service.ShiroRoleService;
import com.mm.fam.web.entity.SysRole;
import com.mm.fam.web.mapper.SysRoleMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class ShiroRoleServiceImpl extends ServiceImpl<SysRoleMapper, SysRole> implements ShiroRoleService {
    @Autowired
    private SysRoleMapper sysRoleMapper;

    @Override
    public List<SysRole> getRoleByUserId(Integer userId) {
        return sysRoleMapper.getRoleByUserId(userId);
    }
}
